<?php /* Smarty version 2.6.14, created on 2010-03-30 23:30:03
         compiled from simpleTableStat.html */ ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>查询结果</title>
		<style type="text/css">
<!--
body {
	background-image: url(../img/back.gif);
}
-->
</style>
		<style>
td{
	border-right:1px solid #cbdced;
	border-bottom: 1px solid #cbdced;
	padding:3px;
}

th{
	background-color:#cbdced;
	padding:3px;
	border-right:1px solid #fff;
	border-bottom:1px solid #fff;
}
table{
	clear:both;
	border-top: 1px solid #cbdced;
	border-left: 1px solid #cbdced;
}
body{
	font-size:14px;
}
.green{
	background-color:green;
}
.brown{
	background-color:brown;
}
.red{
	color:red;
}

.blue{
	color:blue;
}
.exportBtn{
	margin-right:30px;
	margin-top:2px;
	margin-bottom:2px;
	float:right;
	display:block;
	padding:1px;
}

span[class=exportBtn]:hover{
	background-color:#8A95A1;
	color:white;
}
		</style>
		<script type="text/javascript">
		function allChecksChange(obj){
			checks = document.getElementsByTagName("input");
			for(i = 0; i < checks.length; i++){
				o = checks[i];
				type = o.attributes.getNamedItem("type");
				if(type.nodeValue == 'checkbox'){
					o.checked = obj.checked;
				}
			}
			//checks.checked = obj.checked;
		}
		
		function deleteConfirm(){
		return window.confirm('你确实要删除选中的这些记录吗？');
		}
		</script>
	</head>
	<body>
	<?php if ($this->_tpl_vars['advancedSearch']): ?>
	<div id="sbar" style="width:100%; padding: 0px 0px 4px 0px; border-bottom:1px solid #c9d7f1;">
			<span><a href="excelUpload.html">表格上传</a></span>
			| <span><a href="index.html">主页</a></span>
			| <span><a href="advancedSearch.html">回到高级搜索</a></span>
	</div>
	<?php endif; ?>
	
	<form action="batchDelete.php" method="POST" onsubmit="return deleteConfirm()" >
	
	<?php if ($this->_tpl_vars['main_certificationNumber']): ?>
		<?php if ($this->_tpl_vars['advancedSearch']): ?>
			<span class="exportBtn">
				<input type="submit" value=" 删除选中 "/>
			</span>
			<span class="exportBtn">
				<a href="exportAdvancedTableStat.php?certificationNumber=<?php echo $this->_tpl_vars['certificationNumber']; ?>
&facheNumber=<?php echo $this->_tpl_vars['facheNumber']; ?>
&size1From=<?php echo $this->_tpl_vars['size1From']; ?>
&size1To=<?php echo $this->_tpl_vars['size1To']; ?>
&size2From=<?php echo $this->_tpl_vars['size2From']; ?>
&size2To=<?php echo $this->_tpl_vars['size2To']; ?>
&size3From=<?php echo $this->_tpl_vars['size3From']; ?>
&size3To=<?php echo $this->_tpl_vars['size3To']; ?>
&rukuDateFrom=<?php echo $this->_tpl_vars['rukuDateFrom']; ?>
&rukuDateTo=<?php echo $this->_tpl_vars['rukuDateTo']; ?>

				&chukuDateFrom=<?php echo $this->_tpl_vars['chukuDateFrom']; ?>
&chukuDateTo=<?php echo $this->_tpl_vars['chukuDateTo']; ?>
&certificationCodification=<?php echo $this->_tpl_vars['certificationCodification']; ?>
&sequenceNumber=<?php echo $this->_tpl_vars['sequenceNumber']; ?>
&uploadTimeFrom=<?php echo $this->_tpl_vars['uploadTimeFrom']; ?>
&uploadTimeTo=<?php echo $this->_tpl_vars['uploadTimeTo']; ?>

				&filename=<?php echo $this->_tpl_vars['filename']; ?>
&orderNumber=<?php echo $this->_tpl_vars['orderNumber']; ?>
&orderSubitemNumber=<?php echo $this->_tpl_vars['orderSubitemNumber']; ?>
&unitPrice=<?php echo $this->_tpl_vars['unitPrice']; ?>

				&manufactory=<?php echo $this->_tpl_vars['manufactory']; ?>
&purchaseNumber=<?php echo $this->_tpl_vars['purchaseNumber']; ?>
&authenticationMark=<?php echo $this->_tpl_vars['authenticationMark']; ?>

				&steelNumber=<?php echo $this->_tpl_vars['steelNumber']; ?>
&unitPrice=<?php echo $this->_tpl_vars['unitPrice']; ?>
&materialNumber=<?php echo $this->_tpl_vars['materialNumber']; ?>

				&sampleBatch=<?php echo $this->_tpl_vars['sampleBatch']; ?>
&shipmentDateFrom=<?php echo $this->_tpl_vars['shipmentDateFrom']; ?>
&consignmentBatch=<?php echo $this->_tpl_vars['consignmentBatch']; ?>

				&shipmentDateTo=<?php echo $this->_tpl_vars['shipmentDateTo']; ?>
&month=<?php echo $this->_tpl_vars['month']; ?>
&vehicleNumber=<?php echo $this->_tpl_vars['vehicleNumber']; ?>
&consignee=<?php echo $this->_tpl_vars['consignee']; ?>
&remark=<?php echo $this->_tpl_vars['remark']; ?>

				&main=<?php echo $this->_tpl_vars['main']; ?>
&ruku=<?php echo $this->_tpl_vars['ruku']; ?>
&chuku=<?php echo $this->_tpl_vars['chuku']; ?>
>" title="点击进行导出结果"> 导出表格 </a>
			</span>
		<?php else: ?>
			<span class="exportBtn">
				<a href="exportSimpleTableStat.php?stype=<?php echo $this->_tpl_vars['stype']; ?>
&keyname=<?php echo $this->_tpl_vars['keyname']; ?>
" title="点击进行导出结果">导出表格</a>
			</span>
		<?php endif; ?>
	<?php else: ?>
		抱歉没有符合你搜索的条目
	<?php endif; ?>
		<table cellpadding="0" cellspacing="0">
		<tr>
			<th style="width:14em">产品质量证明书号</th>
			<th style="width:5em">产品质量证明书编号</th>
			<th style="width:14em">发车证号</th>
			<th style="width:5em">批次</th>
			<th style="width:6em">生产厂家</th>
			<th style="width:6em">船级</th>
			<th style="width:6em">材质</th>
			<th style="width:10em">厚</th>
			<th style="width:5em">宽</th>
			<th style="width:6em">长</th>
			<th style="width:6em">数量</th>
			<th style="width:6em">单重</th>
			<th style="width:6em">订单号</th>
			<th style="width:6em">订单子项号</th>
			<th style="width:6em">受订单价</th>
			<th style="width:6em">物料号</th>
			<th style="width:6em">发货批次</th>
			<th style="width:6em">批号</th>
			<th style="width:6em">购单号</th>
			<th style="width:6em">发货时间</th>
			<th style="width:6em">合同月份</th>
			<th style="width:10em">车号</th>
			<th style="width:10em">订单打印收货人</th>
			<th style="width:10em">备注</th>
			<th style="width:10em">状态</th>
			<?php if ($this->_tpl_vars['advancedSearch']): ?>
				<th width="6px">编辑</th>
				<th width="6px">删除<input type="checkbox" name="i_d" onchange="allChecksChange(this)" /></th>
			<?php endif; ?>
		</tr>
		<?php unset($this->_sections['item']);
$this->_sections['item']['name'] = 'item';
$this->_sections['item']['loop'] = is_array($_loop=$this->_tpl_vars['main_certificationNumber']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['item']['show'] = true;
$this->_sections['item']['max'] = $this->_sections['item']['loop'];
$this->_sections['item']['step'] = 1;
$this->_sections['item']['start'] = $this->_sections['item']['step'] > 0 ? 0 : $this->_sections['item']['loop']-1;
if ($this->_sections['item']['show']) {
    $this->_sections['item']['total'] = $this->_sections['item']['loop'];
    if ($this->_sections['item']['total'] == 0)
        $this->_sections['item']['show'] = false;
} else
    $this->_sections['item']['total'] = 0;
if ($this->_sections['item']['show']):

            for ($this->_sections['item']['index'] = $this->_sections['item']['start'], $this->_sections['item']['iteration'] = 1;
                 $this->_sections['item']['iteration'] <= $this->_sections['item']['total'];
                 $this->_sections['item']['index'] += $this->_sections['item']['step'], $this->_sections['item']['iteration']++):
$this->_sections['item']['rownum'] = $this->_sections['item']['iteration'];
$this->_sections['item']['index_prev'] = $this->_sections['item']['index'] - $this->_sections['item']['step'];
$this->_sections['item']['index_next'] = $this->_sections['item']['index'] + $this->_sections['item']['step'];
$this->_sections['item']['first']      = ($this->_sections['item']['iteration'] == 1);
$this->_sections['item']['last']       = ($this->_sections['item']['iteration'] == $this->_sections['item']['total']);
?>
		<tr <?php if ($this->_tpl_vars['main_stat'][$this->_sections['item']['index']] == '出库'): ?> class="green" title="此项完成"  <?php elseif ($this->_tpl_vars['main_stat'][$this->_sections['item']['index']] == '库中'): ?> class="brown" title="库中"<?php endif; ?>>
			<td><?php echo $this->_tpl_vars['main_certificationNumber'][$this->_sections['item']['index']]; ?>
</td>
			<td><a href="../img/<?php echo $this->_tpl_vars['main_certificationCodification'][$this->_sections['item']['index']]; ?>
.tif"><?php echo $this->_tpl_vars['main_certificationCodification'][$this->_sections['item']['index']]; ?>
</a></td>
			<td><?php echo $this->_tpl_vars['main_facheNumber'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_sequenceNumber'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_manufactory'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_authenticationMark'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_steelNumber'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_size1'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_size2'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_size3'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_count'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_unitWeight'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_orderNumber'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_orderSubitemNumber'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_unitPrice'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_materialNumber'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_consignmentBatch'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_sampleBatch'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_purchaseNumber'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_shipmentDate'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_month'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_vehicleNumber'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_consignee'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_remark'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main_stat'][$this->_sections['item']['index']]; ?>
</td>
			<?php if ($this->_tpl_vars['advancedSearch']): ?>
				<td><a href="rowEdit.php?type=main&id=<?php echo $this->_tpl_vars['main_id'][$this->_sections['item']['index']]; ?>
">编辑</a></td>
				<td><input type="checkbox" name="main_id<?php echo $this->_tpl_vars['main_id'][$this->_sections['item']['index']]; ?>
" value="<?php echo $this->_tpl_vars['main_id'][$this->_sections['item']['index']]; ?>
" /></td>
			<?php endif; ?>
			</tr>
		<?php endfor; endif; ?>
		</table>
		
		
		
	</table>
	</form>
	</body>
</html>